package bb.lanxing.model.jsonlocal;

import bb.lanxing.model.database.Segment;
import bb.lanxing.util.CommonUtil;

public class JSegment {

    private long id;
    private double distance;
    private long duration;
    private long end_index;
    private long end_time;
    private long start_index;
    private long start_time;

    public static JSegment create(Segment segment) {
        JSegment jSegment = new JSegment();
        jSegment.setId(segment.getId());
        jSegment.setStart_index(segment.getStartIndex());
        jSegment.setEnd_index(segment.getEndIndex());
        jSegment.setStart_time(segment.getStartTime());
        jSegment.setEnd_time(segment.getEndTime());
        jSegment.setDistance(segment.getDistance());
        jSegment.setDuration(segment.getDuration());
        return jSegment;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }


    public long getStart_index() {
        return this.start_index;
    }

    public void setStart_index(long j) {
        this.start_index = j;
    }

    public long getEnd_index() {
        return this.end_index;
    }

    public void setEnd_index(long j) {
        this.end_index = j;
    }

    public long getStart_time() {
        return this.start_time;
    }

    public void setStart_time(long j) {
        this.start_time = j;
    }

    public long getEnd_time() {
        return this.end_time;
    }

    public void setEnd_time(long j) {
        this.end_time = j;
    }

    public double getDistance() {
        return this.distance;
    }

    public void setDistance(double d) {
        this.distance = d;
    }

    public long getDuration() {
        return this.duration;
    }

    public void setDuration(long j) {
        this.duration = j;
    }
}
